package cn.tradewin.advisor.pages;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.ExceptionReporter;
import org.slf4j.Logger;

import cn.tradewin.advisor.mail.services.MailService;

public class ExceptionReport1 implements ExceptionReporter {

	@Property
	private Throwable exception;

	@Inject
	private Logger log;
	
	@Inject
	private MailService mailService;

	public void reportException(Throwable exception) {
		this.exception = exception;
		log.error(exception.getMessage());
	}
}